package com.ziq.baselib

import android.widget.Toast
import com.blankj.utilcode.util.Utils
import com.ziq.base.base.BaseApplication
import com.ziq.base.manager.RetrofitManager
import com.ziq.base.utils.LogUtil
import com.ziq.base.utils.performance.BlockDetectByChoreographer
import com.ziq.base.utils.performance.UIBlockMonitor
import dagger.hilt.android.HiltAndroidApp
import javax.inject.Inject

@HiltAndroidApp
class LibApplication : BaseApplication() {

    @Inject
    lateinit var retrofitManager33: RetrofitManager

    override fun onCreate() {
        super.onCreate()
        Utils.init(this)
        //UI 卡顿 监控
        BlockDetectByChoreographer.start()
        UIBlockMonitor.setListener {
            Toast.makeText(
                this@LibApplication,
                "UI 卡顿",
                Toast.LENGTH_SHORT
            ).show()
        }
    }
}